package initx

import (
	"background/config"
	"background/db"

	"log"
	"time"
)

func DB() {
	now := time.Now()
	unmashal, err := config.Unmashal()
	if err != nil {
		panic(err)
	}
	log.Println(time.Since(now), "config success")
	db.InitDB(unmashal.DataBase)
	log.Println(time.Since(now), "database success")

}
